package com.yingxin.yxerp.module.organization.vo.resp;

import com.yingxin.yx.framework.commons.vo.CommonRespVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.ArrayList;
import java.util.List;

/**
 * 部门
 * @author fanchao
 * @since 2021-05-13
 */

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "DepartmentRespVo对象", description = "部门")
public class DepartmentRespVo extends CommonRespVo {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    private String id;

    @ApiModelProperty(value = "钉钉部门id")
    private String dingDeptId;

    @ApiModelProperty(value = "微信企业号部门id")
    private String weComDeptId;

    @ApiModelProperty(value = "编号")
    private String dno;

    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "排序值")
    private String sort;

    @ApiModelProperty(value = "父级id")
    private String parentId;

    @ApiModelProperty("1 总部 2 分公司  3 其他")
    private String deptType;

    @ApiModelProperty("部门直属员工数量")
    private Integer directStaffCount;

    // @ApiModelProperty("下级部门员工数量")
    // private Integer subDeptStaffCount;

    @ApiModelProperty("员工数量")
    private Integer staffCount;

    //@ApiModelProperty(value = "部门主管id")
    //private String managerId;

    // children

    @ApiModelProperty("下级部门")
    private List<DepartmentRespVo> children;


    // name

    @ApiModelProperty(value = "父级名称")
    private String parentName;

    //@ApiModelProperty(value = "部门主管姓名")
    //private String managerName;

    //@ApiModelProperty(value = "部门主管账户")
    // private String managerUsername;

    @ApiModelProperty(value = "部门主管 list")
    private List<DepartmentMgrRespVo> managerList = new ArrayList<>();

    /**
     * 是否同步：0 是， 1 否，忽略
     */
    private String isSynchronism;
}
